package com.jgzj.example.export.controller;

import com.jgzj.example.export.service.UserInfoService;
import com.jgzj.example.export.vo.BaseReqVo;
import com.jgzj.example.export.vo.UserInfoRspVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description: 用户信息
 * @author: 子木
 * @since: 2021/05/16
 */
@RestController
@RequestMapping("/user")
public class UserInfoController {

    @Autowired
    private UserInfoService userInfoService;

    @PostMapping(value = "/list")
    public List<UserInfoRspVo> getList(@RequestBody BaseReqVo baseReqVo) {
        return userInfoService.getList(baseReqVo);
    }

}